﻿<dxr:DXRibbonWindow
    x:Class="Abc.Desktop.Views.RibbonShell"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:dxb="http://schemas.devexpress.com/winfx/2008/xaml/bars"
    xmlns:dxr="http://schemas.devexpress.com/winfx/2008/xaml/ribbon"
    xmlns:dxdo="http://schemas.devexpress.com/winfx/2008/xaml/docking"
    xmlns:prism="clr-namespace:Microsoft.Practices.Prism.Regions;assembly=Microsoft.Practices.Prism"
    xmlns:dxn="http://schemas.devexpress.com/winfx/2008/xaml/navbar"
    xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
    Title="Abc - MyApp" 
    Height="350" 
    Width="600">

    <Grid>
        <dxb:BarManager prism:RegionManager.RegionName="BarManagerRegion" >
            <dxb:BarManager.Items>
                <dxb:BarButtonItem Name="bNew" Content="Nuevo" Command="{Binding NewTabCommand}" />
                <dxb:BarButtonItem Name="bCopy" Content="Copiar" Command="{Binding CopyCommand}" />
                <dxb:BarButtonItem Name="bPaste" Content="Pegar" Command="{Binding PasteCommand}" />
            </dxb:BarManager.Items>
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="*"/>
                    <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>
                <dxr:RibbonControl Grid.Row="0" 
                                   RibbonStyle="Office2010"
                                   prism:RegionManager.RegionName="RibbonRegion">
                    <dxr:RibbonControl.ToolbarItemLinks>
                    </dxr:RibbonControl.ToolbarItemLinks>
                    <dxr:RibbonDefaultPageCategory>
                        <dxr:RibbonPage Caption="Shell features">
                            <dxr:RibbonPageGroup Caption="Feature 1">
                                <dxb:BarItemLink BarItemName="bNew" />
                                <dxb:BarItemLink BarItemName="bCopy" />
                                <dxb:BarItemLink BarItemName="bPaste" />
                            </dxr:RibbonPageGroup>
                            <dxr:RibbonPageGroup Caption="Feature 2">
                            </dxr:RibbonPageGroup>
                            <dxr:RibbonPageGroup Caption="Feature 3">
                            </dxr:RibbonPageGroup>
                        </dxr:RibbonPage>
                    </dxr:RibbonDefaultPageCategory>
                </dxr:RibbonControl>
                <Grid Grid.Row="1">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="auto" />
                        <ColumnDefinition Width="*"/>
                        <ColumnDefinition Width="auto"/>
                    </Grid.ColumnDefinitions>
                    <dxn:NavBarControl Name="navBar" 
                                       prism:RegionManager.RegionName="NavBarRegion" 
                                       VerticalAlignment="Top"
                                       Grid.Column="0"
                                       MaxWidth="150">
                        <dxn:NavBarControl.View>
                            <dxn:NavigationPaneView dxn:ScrollingSettings.ScrollMode="Buttons"/>
                        </dxn:NavBarControl.View>
                    </dxn:NavBarControl>
                    <Grid Grid.Column="1">
                        <dx:DXTabControl Name="DXTabControl" SelectedIndex="1" prism:RegionManager.RegionName="TabRegion">
                            <dx:DXTabControl.View>
                                <dx:TabControlScrollView AllowHideTabItems="True" ShowHeaderMenu="True" ShowHiddenTabItemsInHeaderMenu="True" ShowVisibleTabItemsInHeaderMenu="False"/>
                            </dx:DXTabControl.View>
                            <dx:DXTabItem x:Name="DXTabItem" Header="Hide all tabs" Visibility="Collapsed" />
                            <dx:DXTabItem Header="Dashboard">
                                <Grid/>
                            </dx:DXTabItem>
                        </dx:DXTabControl>
                    </Grid>
                    <dxdo:DockLayoutManager Grid.Column="2" 
                                            x:Name="dockManager" 
                                            prism:RegionManager.RegionName="LayoutGroupRegion">
                        <dxdo:LayoutGroup Orientation="Vertical" >
                            <dxdo:LayoutPanel Caption="Feature C" prism:RegionManager.RegionName="OptionsRegion" />
                        </dxdo:LayoutGroup>
                    </dxdo:DockLayoutManager>

                </Grid>
                <dxr:RibbonStatusBarControl Grid.Row="2">
                    <dxr:RibbonStatusBarControl.RightItemLinks>
                    </dxr:RibbonStatusBarControl.RightItemLinks>
                </dxr:RibbonStatusBarControl>
            </Grid>
        </dxb:BarManager>
    </Grid>
</dxr:DXRibbonWindow>
